#include "lib2.h"

double mypower(double base, double ex)
{
    double res = base;

    if (base == 1) {
        return 1;
    }

    for(int i=1;i<ex;i++){
       res *= base;
    }

    return res;
}
